﻿using IntoStationSystem.Global;
using System.Windows;

namespace IntoStationSystem.Dialog
{
    /// <summary>
    /// MainDialog.xaml 的交互逻辑
    /// </summary>
    public partial class MainDialog : Window
    {
        public MainDialog(string title)
        {
            InitializeComponent();
            this.Title = title;
            this.WindowStartupLocation = WindowStartupLocation.CenterScreen;
        }

        private void Close_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void DragMove_LeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            this.DragMove();
        }

        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
        }

        private void Keyboard_Click(object sender, RoutedEventArgs e)
        {
            Funcs.ShowSoftKeyboard();
        }
    }
}
